package com.example.service;

import com.example.entity.User;
import com.example.service.impl.UserServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：liukai
 * @date ：Created in 2021/9/6 2:24 下午
 * @description：
 * @modified By：
 * @version: $
 */
@FeignClient(value = "nacos-provider")
public interface IUserService {

    @PostMapping("/provider/addUser")
    String addUser(@RequestBody User user);

    @GetMapping("/provider/getById/{id}")
    String getById(@PathVariable("id") int id);

}
